package com.example.dangdangbackend.mapper;

import com.example.dangdangbackend.VO.OrderAndItemVO;
import com.example.dangdangbackend.VO.OrderDetailVO;
import com.example.dangdangbackend.entity.Order;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderMapper {

    void insertIntoOrder(Order order);

    List<OrderDetailVO> selectOrderDetail();

    OrderAndItemVO findOrderAndItemsByOrderId(int orderId);

    Order getOrderByOrderId(int orderId);

    void updateByOrderId(Order order);
}
